package stool.singletonpattern.part2;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/12
 * @Description 饿汉式
 */
public class Singleton {

    private Singleton(){}

    private static Singleton singleton = new Singleton();

    public static Singleton getSingleton()
    {
        return singleton;
    }
}
